package ch04;class Student21 {
	int number;
}
public class Example4_21 {
	public static void main(String args[]) {
		Student21 stu[] = new Student21[10];	//创建对象数组stu
		for(int i=0;i<stu.length;i++) {
			stu[i] = new Student21();		//创建Student对象stu[i]
			stu[i].number = 101+i;
		}
		for(int i=0;i<stu.length;i++) {
			System.out.println(stu[i].number);
		}
	}
}
